<template>
	<view class=" pt30 pl30 pr30">
		<view class="mb40">请输入您的意见:</view>
		<u-input v-model="value" type="textarea" :border="true" trim/>
		<view class="flex row-center">
			<u-button type="primary" class="mt40" size="medium" @click="submit">提交</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:''
			};
		},
		methods:{
			submit() {
				this.$api.feedback({content:this.value}).then(res=>{
					console.log(res)
					this.$msg(res.msg)
					setTimeout(()=>{
						uni.navigateBack({
							
						})
					},800)
				})
			}
		}
	}
</script>

<style lang="scss">
page {
	background-color: #FFFFFF;
}
</style>
